/*
 * @Author: chengjiang
 * @Date: 2024-11-07 19:47:25
 * @Description: 
 */
import request from '@/utils/request'

export interface FooterTitleReq {
    id: number,
    priceType: number, // 0: 看价盘，1: customer临售盘
    name: string,
    description: string,
}

export interface FooterTitle {
    id: number,
    name: string,
    description: string,
  }
//返回所有的res信息

export interface ListTitleReq{
    priceType: number, // 0, 1
}

export function ListTitle(userID: number, data: ListTitleReq) {
    return request<Array<FooterTitle>>({
        url: `/back/open-api/basic/setting/index/info/list/${userID}`,
        method: 'post',
        data,
        meta: {
        responseAll: true // 返回所有的信息，包括状态码和message和data
        }
    } as any)
    }